#ifndef WORLD_H_INCLUDED
#define WORLD_H_INCLUDED

/*
* Copyright (c) 2010 Michael Collins
*
* This file is part of TerraFirma.
*
* TerraFirma is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* TerraFirma is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with TerraFirma.  If not, see <http://www.gnu.org/licenses/>.
*/

#include "segmented_pool.h"
#include "player.h"
#include "ent_ref.h"
#include "entity.h"
#include "physics_entity.h"
#include "vehicle.h"
//#include "lua/entity.hpp"
//#include "lua/entity_factory.hpp"

namespace game
{
    class World
    {
    public:


        engine::segmented_pool<Player> players;
        //engine::static_heap<Entity> shared_entities;
        //engine::static_heap<Entity> client_entities;
        engine::segmented_pool<Entity*> shared_entities;

        //Derived entity types
        engine::segmented_pool<Entity> entities;
        engine::segmented_pool<Physics_Entity> physics_entities;
        engine::segmented_pool<Vehicle> vehicle_entities;

        //Camera
    };

}

#endif // WORLD_H_INCLUDED
